﻿using System;
using System.Collections.Generic;
using System.Text;
using Cemit.PolyProto;
using Google.Protobuf;

namespace Cemit.PolyServer
{
    class PingHandle : IMessageHandle<Msg_Net_Ping>
    {
        public void Execute(ClientState clientState, IMessage message)
        {
            clientState.lastPingTime = Time.GetTimeStamp();
            clientState.Send(new Msg_Net_Pong());
        }
    }
}
